package com.luoyi;

import com.luoyi.behavior.impl.FlyNoWay;
import com.luoyi.behavior.impl.FlyWithWind;

public class Main {
    public static void main(String[] args) {
        BlueDuck blueDuck = new BlueDuck();
        RedDuck redDuck = new RedDuck();

        blueDuck.fly();
        redDuck.fly();
        redDuck.setFlyBehavior(new FlyWithWind());
        redDuck.fly();
    }
}